const Koa = require('koa');
const serve = require('koa-static');
const path = require('path');

const app = new Koa();

// 指定图片资源文件夹，例如 'public/images'
const staticPath = path.join(__dirname, 'public/uploads');
app.use(serve(staticPath));

app.listen(8089, () => {
  console.log('图片资源服务器运行在 http://localhost:8089');
});
